package com.sanyang.logistics.zhd.handler;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sanyang.logistics.zhd.service.ProductService;
import com.sanyang.logistics.pojo.WorkOrder;


@Controller
@RequestMapping("/sysorders")
public class ProductHandler {
	
	
	@Autowired
	private ProductService pdservice;
	
	@RequestMapping("/selectPro")
	@ResponseBody
	public Object selectPro(Integer oid){
//		System.out.println("111111111");
//		System.out.println("单号"+oid);
		List<WorkOrder> selectPro = pdservice.selectPro(oid);

		return selectPro;
	}

}
